package com.huawei.appmarket.service.store.awk.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout.LayoutParams;
import com.huawei.appmarket.service.store.awk.card.ImmersiveHeadCombineCard;
import o.azb;
import o.cdr;
import o.cih;
import o.epv;
import o.ewm.h;
import o.ewm.j;

public class ImmersiveHeadCombineNode extends cdr {
    public ImmersiveHeadCombineNode(Context context) {
        super(context, 1);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        View inflate = LayoutInflater.from(this.ॱ).inflate(h.ۥ, null);
        azb.ॱ(inflate, j.ˊﹶ);
        View findViewById = inflate.findViewById(j.ˊᵢ);
        Context context = viewGroup.getContext();
        int ˎ = epv.ˎ(context);
        int i = (int) (((double) ˎ) * 1.25d);
        LayoutParams layoutParams = (LayoutParams) findViewById.getLayoutParams();
        layoutParams.width = ˎ;
        layoutParams.height = i;
        findViewById.setLayoutParams(layoutParams);
        cih immersiveHeadCombineCard = new ImmersiveHeadCombineCard(context);
        immersiveHeadCombineCard.ˏ(inflate);
        ˊ(immersiveHeadCombineCard);
        viewGroup.addView(inflate);
        return true;
    }
}
